#ifndef __THREAD_TASK_PARSE_HPP__
#define __THREAD_TASK_PARSE_HPP__
#include "thread_task.hpp"

#include <string>
class thread_task_parse : public thread_task
{
private:
    /* data */
public:
    thread_task_parse(/* args */);
    ~thread_task_parse();
    virtual bool init(){return true;}

    virtual void read_cb(struct bufferevent *buffer){}
    virtual void event_cb(struct bufferevent *buffer,short what){}
    void set_event_callback(struct bufferevent *buffer);
    virtual bool Init(){return true;}
    // 解析命令
    virtual void parse_cmd(std::string type,std::string msg){}
    // 回复cmd消息
    void recv_cmd(std::string msg);
protected:
    
    struct bufferevent *recv_bffer;
};



#endif